home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 4
/
Apprentice-Release4.iso
/
Source Code
/
Libraries
/
PNL Libraries
/
MyWakeUp.p
< prev
next >
Wrap
Text File
|
1995-03-19
|
687b
|
47 lines
unit MyWakeUp;
interface
procedure InitWakeUp;
procedure FinishWakeUp;
procedure WakeUp;
implementation
uses
Processes,GestaltEqu;
var
our_psn: ProcessSerialNumber;
{$PUSH}
{$D-}
procedure WakeUp;
var
junk: OSErr;
begin
if (our_psn.highLongOfPSN <> 0) or (our_psn.lowLongOfPSN <> 0) then begin
junk := WakeUpProcess(our_psn);
end;
end;
{$POP}
procedure InitWakeUp;
var
gv: longInt;
junk: OSErr;
begin
our_psn.highLongOfPSN := 0;
our_psn.lowLongOfPSN := 0;
if (Gestalt(gestaltOSAttr, gv) = noErr) & (BTST(gv, gestaltLaunchControl)) then begin
junk := GetCurrentProcess(our_psn);
end;
end;
procedure FinishWakeUp;
begin
end;
end.